#include "wallpaper.h"
#include "ui_wallpaper.h"
#include<QVector>
#include<QToolButton>
#include<QIcon>

wallpaper::wallpaper(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::wallpaper)
{
    ui->setupUi(this);
    setMouseTracking(true);
    QVector<QToolButton*> tool;
    for(int i=0;i<30;i++){
        QToolButton* toolbtn=new QToolButton(this);
        toolbtn->setIcon(QPixmap("://image/4f39967055631463e5429e8bef66a2b.jpg"));
        toolbtn->setIconSize(QSize(50,50));
        toolbtn->setAutoRaise(true);
        //ui->glayout->addWidget(toolbtn);
        tool.push_back(toolbtn);
    }
}

wallpaper::~wallpaper()
{
    delete ui;
}
